<!DOCTYPE html>
<html>
    <head>
        <title>SisPEC</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="/sispec/resources/css/ui.css"/>
        <!--<link rel="stylesheet" type="text/css" href="/sispec/resources/css/redmond/jquery-ui.css"/>-->
        <link rel="stylesheet" type="text/css" href="/sispec/resources/css/custom-theme/jquery-ui.css"/>
        <link rel="stylesheet" type="text/css" href="/sispec/resources/css/TableTools.css"/>
        <link rel="stylesheet" type="text/css" href="/sispec/resources/css/pagina_tabela.css"/>
        <link rel="stylesheet" type="text/css" href="/sispec/resources/css/tabela.css"/>
        <link rel="stylesheet" type="text/css" href="/sispec/resources/css/jquery.treeview.css"/>
        <link rel="stylesheet" href="/sispec/resources/css/nivoSlider/default.css" type="text/css" />
        <link rel="stylesheet" href="/sispec/resources/css/nivoSlider/nivo-slider.css" type="text/css" />
        <link rel="stylesheet" href="/sispec/resources/css/uploadify.css" type="text/css" />
        <link rel="stylesheet" href="/sispec/resources/css/ui.multiselect.css" type="text/css" />
        <script type="text/javascript" src="/sispec/resources/js/jquery.min.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery-ui.min.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/modulo.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery.dataTables.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery.jeditable.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery.cookie.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery.treeview.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/ZeroClipboard.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/TableTools.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery.treeview.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery.json-2.2.min.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery.maskedinput-1.3.min.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery.validate.min.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery.validate.min.messages.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery.metadata.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery.tmpl.min.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery.nivo.slider.pack.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/ui.multiselect.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/swfobject.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/jquery.uploadify.min.js"></script>
        <!--<script type="text/javascript" src="/sispec/resources/js/flexigrid.js"></script>-->
        <script type="text/javascript" src="/sispec/resources/js/Aquisicao.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Andamento.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Observacao.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Assunto.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Autor.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Classe.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Cmdo.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Colecao.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Emprego.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Epoca.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/EspacoCultural.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/EstadoEspaco.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/EstadoObjeto.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Estilo.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Fabricante.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Facilidade.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/FatoHistorico.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/FonteRecursos.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Grupo.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Material.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Objeto.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/OM.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Origem.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Permissao.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Procedencia.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Recurso.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Personagem.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/RM.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Tecnica.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/TipoEspaco.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/TipoUnidade.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Titulo.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Unidade.js"></script>
        <script type="text/javascript" src="/sispec/resources/js/Usuario.js"></script>
        <script type="text/javascript">
            $(function(){
                try {
                    $.metadata.setType("attr", "validate");
                    $.validator.setDefaults({
                        highlight: function(input) {
                            $(input).addClass("ui-state-highlight");
                        },
                        unhighlight: function(input) {
                            $(input).removeClass("ui-state-highlight");
                        }
                    });
                    TableToolsInit.sSwfPath="/sispec/resources/flash/ZeroClipboard.swf";
                    container = new Container();
                    container.setId('content');
                    container.insert('apresentacao', 'apresentacao.html', null);
                    container.select('apresentacao');
                    $("#cabecalho").load("cabecalho.html");
                    if($.cookie("usuario_logado") != null && $.cookie("usuario_logado") != "") {
                        var user = $.evalJSON($.cookie("usuario_logado"));
                        usuario_logado = user;
                        mountIndex();
                    }
                } catch(e) {
                    reportCrash(null, e.name, e.stack);
                }
            });
        </script>
    </head>
    <body>
        <div id="outerborder">
            <div id="cabecalho">
            </div>
            <div id="content">
            </div>
        </div>
        <div id="dialogs">
            <div id="message"></div>
            <div id="confirm"></div>
            <div id="recurso" title="Cadastro"></div>
            <div id="manutencao_espaco" title="Manuten&ccedil;&atilde;o de Espa&ccedil;o Cultural"></div>
            <div id="upload_file_espaco" title="Carga de Imagens">
            </div>
            <div id="formConsultaSenha" class="flora" title="Consulta de Senha" style="display: none;">
                <table>
                    <tr>
                        <td>
                            email: <input type="text" id="email_consultar" name="email_consultar" style="width: 300px"/>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <button onclick="consultarSenha()">Enviar</button>
                        </td>
                    </tr>
                </table>
                <br/>
            </div>
        </div>
        <div id="templates">
            <script id="usuario_tmpl" type="text/x-jquery-tmpl">
                Seja bem-vindo, ${nome} | <a href="javascript:void(0)" onclick="logoff()">Sair</a>
            </script>
            <script id="imagem" type="text/x-jquery-tmpl">
                <img title="${descricao}" alt="${descricao}" src="/sispec/controllers/ArquivoController.php?acao=consultar&cod_arquivo=${cod_arquivo}"/>
            </script>
            <script id="arquivo" type="text/x-jquery-tmpl">
                <tr id="${cod_arquivo}">
                    <td><a href="/sispec/controllers/ArquivoController.php?acao=consultar&cod_arquivo=${cod_arquivo}" target="_blank">${nome}</a></td>
                    <td class="cell_editable edit_action_image_content" title="Clique duas vezes para editar" id="descricao">${descricao}</td>
                    <td style="width: 10px" class="remove_action_image_content">
                        <div class="ui-state-default ui-corner-all"  style="float: left">
                            <a href="javascript: void(0)"><span class="trash ui-icon ui-icon-trash" onclick="manutencaoArquivo('excluir','${cod_arquivo}','${cod_espaco}')" title="Excluir"></span></a>
                        </div>
                    </td>
                </tr>
            </script>
        </div>
    </body>
</html>